package com.ruoyi.handing.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.handing.mapper.AlgsHandingRecordMapper;
import com.ruoyi.handing.domain.AlgsHandingRecord;
import com.ruoyi.handing.service.IAlgsHandingRecordService;

/**
 * 处理记录Service业务层处理
 * 
 * @author ruoyi
 * @date 2023-03-24
 */
@Service
public class AlgsHandingRecordServiceImpl implements IAlgsHandingRecordService 
{
    @Autowired
    private AlgsHandingRecordMapper algsHandingRecordMapper;

    /**
     * 查询处理记录
     * 
     * @param algsHandingId 处理记录主键
     * @return 处理记录
     */
    @Override
    public AlgsHandingRecord selectAlgsHandingRecordByAlgsHandingId(Long algsHandingId)
    {
        return algsHandingRecordMapper.selectAlgsHandingRecordByAlgsHandingId(algsHandingId);
    }

    /**
     * 查询处理记录列表
     * 
     * @param algsHandingRecord 处理记录
     * @return 处理记录
     */
    @Override
    public List<AlgsHandingRecord> selectAlgsHandingRecordList(AlgsHandingRecord algsHandingRecord)
    {
        return algsHandingRecordMapper.selectAlgsHandingRecordList(algsHandingRecord);
    }

    /**
     * 新增处理记录
     * 
     * @param algsHandingRecord 处理记录
     * @return 结果
     */
    @Override
    public int insertAlgsHandingRecord(AlgsHandingRecord algsHandingRecord)
    {
        return algsHandingRecordMapper.insertAlgsHandingRecord(algsHandingRecord);
    }

    /**
     * 修改处理记录
     * 
     * @param algsHandingRecord 处理记录
     * @return 结果
     */
    @Override
    public int updateAlgsHandingRecord(AlgsHandingRecord algsHandingRecord)
    {
        return algsHandingRecordMapper.updateAlgsHandingRecord(algsHandingRecord);
    }

    /**
     * 批量删除处理记录
     * 
     * @param algsHandingIds 需要删除的处理记录主键
     * @return 结果
     */
    @Override
    public int deleteAlgsHandingRecordByAlgsHandingIds(Long[] algsHandingIds)
    {
        return algsHandingRecordMapper.deleteAlgsHandingRecordByAlgsHandingIds(algsHandingIds);
    }

    /**
     * 删除处理记录信息
     * 
     * @param algsHandingId 处理记录主键
     * @return 结果
     */
    @Override
    public int deleteAlgsHandingRecordByAlgsHandingId(Long algsHandingId)
    {
        return algsHandingRecordMapper.deleteAlgsHandingRecordByAlgsHandingId(algsHandingId);
    }
}
